<template>
    <div class="form-group">
        <p class="cut_off"></p>
		<table width="100%" border="0" class="form-table">
			<thead>
				<tr>
					<th>排名</th>
					<th>姓名</th>
					<th>周零违规</th>
				</tr>
			</thead>
			<tbody>
				<tr v-for="rank of teamRankList" :class="{fc_red:rank.isThis}">
					<td>{{rank.rank}}</td>
					<td>{{rank.empNo}}</td>
					<td>{{rank.safeStar}}</td>
				</tr>
			</tbody>
		</table>
	</div>
</template>
<script type="text/javascript">
	export default{
		data(){
			return{
				teamRankList:[]
			}

		},
		mounted(){
			this.getTeamRankDatas();
		},
		methods:{
			getTeamRankDatas(){
				this.$http.get(this.$parent.teamRankUrl,{emulateJSON:true})
				.then((response) =>{
					console.log(response);
					this.teamRankList = response.data

				})
			}
		}
	}
</script>